package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_DLYH"
 *     
*/
public class XtglDlyh implements Serializable {

    /** identifier field */
    private String dlyhId;

    /** nullable persistent field */
    private String dlyhCode;

    /** nullable persistent field */
    private String dlyhName;

    /** nullable persistent field */
    private String dlyhJc;

    /** nullable persistent field */
    private String mjxBz;

    /** nullable persistent field */
    private String nd;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zt1;
    
    /** nullable persistent field */
    private String zt2;


    /** full constructor */
    public XtglDlyh(String dlyhId, String dlyhCode, String dlyhName,
			String dlyhJc, String mjxBz, String nd, String bz,
			String zt1,String zt2) {
        this.dlyhId = dlyhId;
        this.dlyhCode = dlyhCode;
        this.dlyhName = dlyhName;
        this.dlyhJc = dlyhJc;
        this.mjxBz = mjxBz;
        this.nd = nd;
        this.bz = bz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglDlyh() {
    }

    /** minimal constructor */
    public XtglDlyh(String dlyhId) {
        this.dlyhId = dlyhId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="DLYHID"
     *         
     */
    public String getDlyhId() {
        return this.dlyhId;
    }

    public void setDlyhId(String dlyhId) {
        this.dlyhId = dlyhId;
    }

    /** 
     *            @hibernate.property
     *             column="DLYH_CODE"
     *             length="2"
     *         
     */
    public String getDlyhCode() {
        return this.dlyhCode;
    }

    public void setDlyhCode(String dlyhCode) {
        this.dlyhCode = dlyhCode;
    }

    /** 
     *            @hibernate.property
     *             column="DLYH_NAME"
     *             length="50"
     *         
     */
    public String getDlyhName() {
        return this.dlyhName;
    }

    public void setDlyhName(String dlyhName) {
        this.dlyhName = dlyhName;
    }

    /** 
     *            @hibernate.property
     *             column="DLYH_JC"
     *             length="50"
     *         
     */
    public String getDlyhJc() {
        return this.dlyhJc;
    }

    public void setDlyhJc(String dlyhJc) {
        this.dlyhJc = dlyhJc;
    }

    /** 
     *            @hibernate.property
     *             column="MJX_BZ"
     *             length="1"
     *         
     */
    public String getMjxBz() {
        return this.mjxBz;
    }

    public void setMjxBz(String mjxBz) {
        this.mjxBz = mjxBz;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="BZ"
     *             length="200"
     *         
     */
    public String getBz() {
        return this.bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }
    
    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("dlyhId", getDlyhId())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglDlyh) ) return false;
        XtglDlyh castOther = (XtglDlyh) other;
        return new EqualsBuilder()
            .append(this.getDlyhId(), castOther.getDlyhId())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getDlyhId())
            .toHashCode();
    }

}
